using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using cn.Util;

namespace yq.Model.Logic
{
    /// <summary>
    /// Sys_File - 大文件表 - 对象继承类
    /// </summary>
    [MetadataType(typeof(SysFileValidaTion))]
    public class SysFile : ISysFile<SysFile>
    {


       #region 生成实体类验证属性
       /// <summary>
       /// 辅助验证类
       /// </summary>
       [Bind]
       public class SysFileValidaTion
       {

     

        /// <summary>
        /// 文件ID
        /// </summary>
        [Display(Name ="文件ID")]
        [Required]
        [StringLength(36)]
        public String FlieId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 关联ID
        /// </summary>
        [Display(Name ="关联ID")]
        [Required]
        [StringLength(36)]
        public String ModelId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 文件名
        /// </summary>
        [Display(Name ="文件名")]
        [Required]
        [StringLength(36)]
        public String FlieName
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 大小
        /// </summary>
        [Display(Name ="大小")]
        [Required]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public int FileSize
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 扩展名
        /// </summary>
        [Display(Name ="扩展名")]
        [Required]
        [StringLength(36)]
        public String Extension
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name ="创建时间")]
        [Required]

        public DateTime SubmitTime
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 保存路径
        /// </summary>
        [Display(Name ="保存路径")]
        [Required]
        [StringLength(36)]
        public String SavePath
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 是否删除
        /// </summary>
        [Display(Name ="是否删除")]
        [Required]
        [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.BooleanType IsDel
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 下载次数
        /// </summary>
        [Display(Name ="下载次数")]
        [Required]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public int DownCount
        {
         get; set; 
        }


       

       
       }
       #endregion 生成实体类验证属性
    }
}
